# Create your views here.
from django.http import HttpResponse
from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
from musicmanager.models import Music,Annoation
from django.template import Context,Template,loader
from django.shortcuts import render_to_response

def index(request):
    if request.user.is_authenticated():
        #get this user
        return render_to_response('tools.html',{'user':request.user})
        #return HttpResponse("Hello,AD")
    else:
        return render_to_response('tools.html')
        #return HttpResponse("not authorized")

def faq(request):
    return render_to_response('faq.html',{})
